<?xml version="1.0" encoding="ISO-8859-1" ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
	  xmlns:c="http://java.sun.com/jsp/jstl/core"
	  xmlns:f="http://java.sun.com/jsf/core"
	  xmlns:h="http://java.sun.com/jsf/html"
	  xmlns:ui="http://java.sun.com/jsf/facelets"
	  xmlns:framework="http://java.sun.com/jsf/composite/framework">
	<ui:composition template="../template.xhtml">
		<ui:define name="content">
		
			<framework:searchEntity searchEntity="#{searchBlog}">
				<f:facet name="options">
					<tr>
						<th>Name</th>
						<td>
							<h:inputText value="#{searchBlog.options.name}"/>						
						</td>
					</tr>
					<tr>
						<th>Description</th>
						<td>
							<h:inputText value="#{searchBlog.options.description}"/>
						</td>
					</tr>
				</f:facet>
				
				
				<h:column>
						<f:facet name="header">#</f:facet>
						#{entity.identifier}							
				</h:column>
			
				<h:column>
						<f:facet name="header">Name</f:facet>
						<h:commandLink action="#{editBlog.initialize(entity)}" value="#{entity.name}"/>								
				</h:column>
					
				<h:column>
					<f:facet name="header">Creation Date</f:facet>
					<h:outputText value="#{entity.creationDate}">
						<f:convertDateTime pattern="dd/MM/yyyy"/>
					</h:outputText>											
				</h:column>
				
				<h:column>
					<f:facet name="header"></f:facet>
					<h:commandLink action="#{deleteBlog.initialize(entity)}" value="Delete"/>
				</h:column>
				
			</framework:searchEntity>
					
		</ui:define>
	</ui:composition>
</html>
